package com.example.understandvideo.mapper;

import com.example.understandvideo.pojo.AnalysisTask;
import com.example.understandvideo.pojo.SmartTask;
import com.example.understandvideo.pojo.TaskRequest;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface SmartTaskDao {
    int deleteByPrimaryKey(Long id);

    int insert(SmartTask record);

    int insertSelective(SmartTask record);

    SmartTask selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SmartTask record);

    int updateByPrimaryKey(SmartTask record);
    int updateStatus(SmartTask record);
    int updateType(SmartTask record);

    List<SmartTask> search(TaskRequest request);
    Long count(TaskRequest request);
}